//
//  UIViewController+Extension.h
//  UIViewController+Extension
//
//  Created by qishi on 15/11/08.
//  Copyright (c) 2015年 qisi. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIImage (Color)

@end

@interface UIViewController (Extension)

@property (nonatomic, strong) UINavigationBar *CustomNaviBar;///<自定义导航栏

@property (nonatomic, strong) UILabel *TitleLB;///<标题

@property (nonatomic, strong) UIButton *BackBarItem;///<返回按钮

@property (nonatomic, strong) UIButton *RightBarItem;///<右边按钮

@property (nonatomic, strong) UIColor *barColor;///<导航栏背景色

/**
 *  设置下个vc是否需要自定义(viewcontroller刚实例的时候用,不能在viewDidLoad中使用)
 */
@property (nonatomic, assign) BOOL NavigationBarHidden;



/**
 *  添加自定义导航栏
 *
 *  @param view  需要添加导航栏的view
 *  @param color 导航栏颜色
 */
- (void)addCustomNaviBar:(UIView *)view Color:(UIColor *)color DEPRECATED_ATTRIBUTE;

/**
 *  返回按钮点击事件
 *  在vc里面重写这个方法就能实现点击事件
 *  该方法已经对pop跟dismiss做处理,所以不需要写这两个方法
 */
-(void)backBarItemAction:(UIButton *)button;

@end

@interface UINavigationController (Extension)
/**
 *  设置导航栏栈是否需要自定义(navigationcontroller刚实例的时候用)
 */
@property (nonatomic, assign) BOOL NavigationBarHideEnabled;

@end
